<{php}>
if(isset($config['messages_seo_title']['cvalue'])){
$title = $config['messages_seo_title']['cvalue'];
}
if(isset($config['messages_seo_keywords']['cvalue'])){
$keywords = $config['messages_seo_keywords']['cvalue'];
}
if(isset($config['messages_seo_desc']['cvalue'])){
$description = $config['messages_seo_desc']['cvalue'];
}
<{/php}>
<{include file="../template/public/head.html"}>
<link rel="stylesheet" type="text/css" href="/static/css/css.css" />
<link rel="stylesheet" type="text/css" href="/static/css/style.css" />
<!-- header-->
<!-- pro_top -->
<{include file="../template/public/union_nav.html"}>
<style type="text/css">
    <{php}>
    if($_SERVER['HTTP_HOST'] == 'ar.horseen.com'){
        echo "html{direction:rtl;}";
    }
    <{/php}>
    .banner{
        background:url(<{if condition="isset($config.messages_banner.cvalue)"}><{$config.messages_banner.cvalue}><{/if}>) !important;
        background-size:100% 100% !important;
    }
    @media (max-width: 1200px) {
        .banner{
            background: url(<{if condition="isset($config.messages_banner.cvalue)"}><{$config.messages_banner.cvalue}><{/if}>) no-repeat center center !important;
        }
    }
    @media (max-width:700px) {
        .banner{
            display:none;
        }
    }
</style>
<script>
    $/*('link').each(function(){
        if($(this).attr('href').indexOf("css/style.css")>0){
            $(this).remove();
            return false;
        }
    });*/
</script>



<div class="container-fluid">
    <div class="row">
        <div class="banner  relative">
            <div class="container">
                <div class="row">
                    <div class="col-sm-7">
                        <div class="text">
                            <h1 class="white"><{if condition="isset($config.messages_title.cvalue)"}><{$config.messages_title.cvalue}><{/if}></h1>
                            <p><{if condition="isset($config.messages_desc.cvalue)"}><{$config.messages_desc.cvalue}><{/if}></p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<section class="pro-sec feedback-sec">
    <div class="container">
        <div class="row">
            <div class="col-md-7 col-sm-7">
                <h1 class="inline-block"><{:lang('messages_messages')}></h1>
                <small class="hidden-xs hidden-sm">
                    <!--Please feel free to leave any message that you want to know!-->
                </small>
                <div class="feedback-form">
                    <h3>
                        <!--Describe your question / suggestion-->
                    </h3>
                    <form id="form1" class="form-horizontal" method="post" name="feedback">
                        <input type="hidden" name="fromUrl" value="" id="fromUrl" />
                        <input type="hidden" value="1" name="needemail" />
                        <div class="form-group">
                            <div class="col-md-6">
                                <label class="sr-only">Name</label>
                                <input type="text" class="form-control" name="name" placeholder="<{:lang('message_your_name')}>" />
                            </div>
                            <div class="col-md-6">
                                <span class="required">*</span>
                                <label class="sr-only">Contact Info</label>
                                <input type="text" class="form-control" name="phone" placeholder="<{:lang('message_tel')}>" required="required" />
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-6">
                                <label class="sr-only">Country</label>
                                <input type="text" class="form-control" name="country" placeholder="<{:lang('contact_your_country')}>" />
                            </div>
                            <div class="col-md-6">
                                <span class="required">*</span>
                                <label class="sr-only">Contact Info</label>
                                <input type="text" class="form-control" name="email" placeholder="<{:lang('email')}>" required="required" />
                            </div>

                        </div>
                        <div class="form-group">
                            <div class="col-md-6">
                                <label class="sr-only">Company</label>
                                <input type="text" class="form-control" name="company" placeholder="<{:lang('message_company_name')}>" />
                            </div>
                            <div class="col-md-6">
                                <{php}>$sys = $query->getTopSys();<{/php}>
                                <label class="sr-only" for="product"><{:lang('message_select_product')}></label>
                                <select id="product" name="product">
                                    <option value="0" selected="" disabled=""><{:lang('message_select_product')}></option>
                                    <{volist name="$sys" id="item"}>
                                    <optgroup label="<{$item.name}>">
                                        <{php}>$products = $query->getProductsForSysCat($item['id']);
                                        <{/php}>
                                        <{volist name="$products" id="it"}>
                                        <option value="<{$it.name}>"><{$it.name}></option>
                                        <{/volist}>
                                    </optgroup>
                                    <{/volist}>

                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="sr-only">Describe the content</label>
                            <div class="col-md-12">
                                <textarea name="content" cols="30" rows="10" class="form-control" placeholder="<{:lang('message_if_you_can_show')}>"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-12">
                                <button type="submit" class="btn btn-default btn-border btn-feedback-form" id="submit" ><{:lang('message_submit')}></button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div class="col-md-offset-1 col-md-4 col-sm-offset-1 col-sm-4">
                <div class="feedback-survey">
                    <h2 class="inline-block"><{:lang('message_contact_us')}></h2>
                    <ul class="list-unstyled">
                        <li><{:lang('messages_contact_us')}></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</section>
<script type="text/javascript">
    $("#submit").click(function(e){
        e.preventDefault();
        $("#fromUrl").val(window.location.href);
       var form = $("#form1").serialize();
       $.post("/index/index/sendMail",form,function(data){
            alert(data.message)
       },'JSON')
    });
</script>
<{include file="../template/public/sidebar.html"}>
<{include file="../template/public/foot.html"}>